<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title><?= (isset ($controller)?$controller:'')?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<?= BASE_URL?>imports/images/favicon.ico" rel="icon" type="image/x-icon" />
        <?= $css?>
        <?= $js_variables?>
        <?= $js?>
        <?= (isset ($js_opt))?$js_opt:''?>
    </head>
    <body>
         
        <div>
            <div class="grad">
                <div class="header-wrapper">
                    
                    <?= img('logo.png',array('class'=>'logo1')) ?>
                    <?= img('logo.jpg',array('class'=>'logo2')) ?>

                    
                </div>
                <div class=" menu-wrapper">
                    <?= (isset ($main_menu))?$main_menu:'' ?>
                    <span class="welcome">You are login as: <?= (isset ($users_name))?$users_name:'' ?></span>
                    <?= anc($controller.'/index/add/', img('standard/plus.png',array('alt'=>'Add '.$controller,'title'=>'Add '.$controller)),array('class'=>'add-data'))?>
                    <?= anc('home/logout',  img('standard/key.png',array('alt'=>'Logout','title'=>'Logout')),array('class'=>'logout'))?>
                    <?= anc('home',  img('standard/home.png',array('alt'=>'Goto home page','title'=>'Goto home page')),array('class'=>'home-page'))?>
                </div>
            </div>
            <div class="alerts<?= ($show_alerts)?"":"hide" ?>">
                <?= (isset ($alerts))?$alerts:''?>
            </div>
            <div class="current-page">
                <span class="current-page-label">
                    Current Page
                </span>
                <hr></hr>
                <?= (isset($uploader))?$uploader:''?>
                <?= img('155.gif',array('class'=>'right preloader-1 hide'))?>
                <div class="" id="current-page">
                    <?= (isset ($current_page))?$current_page:''?>
                </div>
            </div>
        </div>
        <?= generate_input_element('controller',array('type'=>'hidden','value'=>$controller))?>
    </body>
</html>